import request from '@/utils/request'
// , setToken, removeToken
import { getToken } from '@/utils/auth'

export function addAdjustmentSheetAndDetails(data) { // 新建调整单
  return request({
    url: '/wxh-cloud-rest/rest/pas/' + getToken() + '/adjustment/addAdjustmentSheetAndDetails',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data
  })
}

export function getAdjustmentSheet(query) { // 查询盘点单
  return request({
    url: '/wxh-cloud-rest/rest/pas/' + getToken() + '/adjustment/getAdjustmentSheet',
    method: 'get',
    params: query
  })
}

